package com.Design.AbstractFacPattern;

import com.Design.AbstractFacPattern.Impl.Color;
import com.Design.AbstractFacPattern.Impl.Shape;
import com.Design.AbstractFacPattern.Shape.Circle;
import com.Design.AbstractFacPattern.Shape.Square;

public class AbstractFactory extends Factory {


    @Override
    public Color getColor(String color) {
        return null;
    }

    @Override
    public Shape getShape(String shape) {
        if(shape==null){
            return null;
        }else if (shape.equals("Circle")){
            return new Circle();
        }else if(shape.equals("Square")){
            return new Square();
        }
        return null;
    }
}
